from django.shortcuts import render


def join_view(request):
    context = {
        'value': [1, 2, 3, 4]
    }
    return render(request, 'join.html', context=context)


def length_view(request):
    context = {
        'value': 'abcskigngjjf'
    }
    return render(request, 'length.html', context=context)


def lower_view(request):
    context = {
        'value': 'Hello World!'
    }
    return render(request, 'lower.html', context=context)


def upper_view(request):
    context = {
        'value': 'hello world!'
    }
    return render(request, 'upper.html', context=context)


def random_view(request):
    context = {
        'value': [1, 2, 3, 4, 5]
    }
    return render(request, 'random.html', context=context)


def safe_view(request):
    context = {
        'value': '<script>alert(100);</script>'
    }
    return render(request, 'safe.html', context=context)
